home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 968 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. Path: gate.net!not-for-mail
  2. From: feathers@gate.net (Michael Feathers)
  3. Newsgroups: comp.lang.eiffel,comp.lang.ada,comp.edu,comp.lang.c,comp.lang.c++,comp.lang.modula2,comp.lang.modula3
  4. Subject: Re: Hungarian notation
  5. Followup-To: comp.lang.eiffel,comp.lang.ada,comp.edu,comp.lang.c,comp.lang.c++,comp.lang.modula2,comp.lang.modula3
  6. Date: 8 Jan 1996 13:01:54 -0500
  7. Organization: CyberGate, Inc.
  8. Message-ID: <4crm6i$24mi@navajo.gate.net>
  9. References: <30C40F77.53B5@swsbbs.com> <30EF0415.6FE1@tus.ssi1.com> <1996Jan7.045815.8676@ohstpy> <4cpb00$nqk@news.xmission.com>
  10. NNTP-Posting-Host: navajo.gate.net
  11. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  12.  
  13. Todd Knarr (tknarr@xmission.com) wrote:
  14. : In <1996Jan7.045815.8676@ohstpy>, vancleef@ohstpy.mps.ohio-state.edu writes:
  15. : >How often do you use NON-ZERO terminated strings??? HN is
  16. : >useless garbage in C++, or for ANSI C compilers.
  17.  
  18. Not so.  I use HN in C++ all the time.  It is excellent in the presence 
  19. of polymorphism.
  20.  
  21. : That's the big downside to HN: it simply cannot be sensibly extended to
  22. : deal with an arbitrarily large number of types, and it goes completely
  23. : insane dealing with polymorphism. I doubt anyone could come up with a
  24. : reasonable HN prefix to accomodate a variable that can be one of 9
  25. : different types at any given time.
  26.  
  27. I've never seen a variable that can be any of 9 different types in C++.
  28. All variables have a type.  Period.  A type can be a union or a base 
  29. class, but all variables have one and only one type in C++.  If you don't
  30. believe me, check the ARM.
  31.  
  32.